package com.mjf.kxml.util;

import lombok.Data;

/**
 * <p>
 * desc
 * </p>
 *
 * @author chenshoumeng
 * @date 2025/6/4 13:18
 */
@Data
public class CKResultVO {

    private Boolean success;
    // S 成功 N失败
    private String mType;
    // 错误信息
    private String message;
    // 接口返回原始报文
    private String data;

    public static CKResultVO buildSuccess(String mType, String message, String data)
    {
        CKResultVO vo = new CKResultVO();
        vo.setSuccess("S".equals(mType));
        vo.setMType(mType);
        vo.setMessage(message);
        vo.setData(data);
        return vo;
    }


}
